<?php
	$item = array($drinks = array($a = "", $b = "", $c = ""));

	//class that builds each plate
	class testDrinks extends PHPUnit_Framework_TestCase {

		public function testDrinkFunctionality() {
			global $item;

			//load data from table into an associative array
			foreach($item as $index => $values) {
				$this->assertNotNull($index);

				//search the master array for the drinks
				if($index == 'drinks') {
					$drinks = $values; //collect drink elements
					$this->assertEquals($drinks, $values);

					$rows = count($values); //count number of elements
					$this->assertEquals($rows, count($values));
				} //conclude if
			} //conclude loop
	
			//evaluate drink selections. 
			$counter = 0;
			$this->assertEquals(0, $counter);

        		foreach ($drinks as $arr) { //builds the buttons along the right column
				$this->assertNotNull($arr);
	   			if( ( $counter % 2 ) == 0 ) {
	      				$name = $arr;
					$this->assertEquals($name, $arr);	
           			}
           			else {
					$name = $arr;
					$this->assertEquals($name, $arr);
           			}
           			$counter++;
				$this->assertGreaterThan(0, $counter);
			} //conclude foreach
		}
	}
?>

